<?php
//路由群组,'middleware' => 'admin.login'
Route::group(['namespace'=>'Admin','prefix'=>'admin'],function(){
    Route::get('index', 'IndexController@index');
    Route::get('welcome',function(){
        return  view('admin.welcome');
    });
    //会员管理资源路由
    Route::resource('user','UserController');

    //手动删除路由
    Route::post('user/delete/{id}','UserController@delete');

    //栏目管理路由
    Route::resource('cat','CatController');

    //手动删除路由
    Route::post('cat/delete/{id}','CatController@delete');
    
    //图片管理
    Route::resource('image','ImageController');
});


